import ZbRequest from '../index'

export const addTeacher = (data) => ZbRequest.post('/teacher', data)
export const deleteTeacher = (id) => ZbRequest.delete('/teacher/' + id, {})
export const updateTeacher = (id, data) => ZbRequest.put('/teacher/' + id, data)
export const getTeacher = (data) => ZbRequest.get('/teacher', data)
export const getTeacherDetail = (id) => ZbRequest.get('/teacher/' + id, {})